net: hns3: synchronize speed and duplex from phy when phy link up
authorPeng Li <lipeng321@huawei.com>
Tue, 18 Dec 2018 11:37:56 +0000 (19:37 +0800)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commitdd451020100934502fe5ca17ac50f09969de7b27
treee781ac1b8808db66ee743b30d4709e8dc16d52ad
parentc7e9f68f66161dd1d935cd97aeb76d826c70bb57
net: hns3: synchronize speed and duplex from phy when phy link up

Driver calls phy_connect_direct and registers hclge_mac_adjust_link
to synchronize mac speed and duplex from phy. It is better to
synchronize mac speed and duplex from phy when phy link up.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gbp-Pq: Topic bugfix/arm64/huawei-taishan
Gbp-Pq: Name 0019-net-hns3-synchronize-speed-and-duplex-from-phy-when-.patch
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c